package com.ir;

import java.util.List;

public class Func {
    List<Stmt> stmts;
    List<Var> vars;
    List<Var> params;
    List<FloatIR> floats;
    List<Var> global;
    int num = 0;

    public Func(List<Stmt> stmts, List<Var> vars, List<Var> params, List<FloatIR> floats, List<Var> global,int num) {
        this.stmts = stmts;
        this.vars = vars;
        this.params = params;
        this.floats = floats;
        this.global = global;
        this.num = num;
    }

    public List<Stmt> getStmts() {
        return stmts;
    }

    public List<Var> getVars() {
        return vars;
    }

    public List<Var> getParams() {
        return params;
    }

    public List<FloatIR> getFloatIRs() {
        return floats;
    }

    public List<Var> getGlobal() {
        return global;
    }

    public int getParamsNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
    public int getNum() {
        return num;
    }
}
